export const validDateUserName = () => {
    return (rule, value, callback) => {
      if (value.length === 0) {
        callback(new Error('请输入账号'))
      } else if(value.length > 30){
        callback(new Error('账号不能超出30个字符'))
      } else{
        callback()
      }
    }
}

export const validDatePassword = () => {
    return (rule, value, callback) => {
      if (value.length < 6) {
        callback(new Error('密码需要大于6位'))
      } else {
        callback()
      }
    }
}
